tantek.com

How to make HTML5 input type="url" allow user entry/submission of http-less URLs like "tantek.com": onblur or onkeydown with keyCode 13: fix up the value by prepending "http://" if necessary. e.g. call webaddresstouri() function in cassis.js. Must use input type="text" in the page markup for HTML5 browsers with javascript turned off, and dynamically set the input element's type="url" in script on the page. Now implemented in @Falcon's @RelMeAuth login UI. Might want to do this with all uses of <input type="url"> for better usability (don't require user to type "http://"). Perhaps worth writing up in a blog post.

on (ttk.me t48y2) using BBEdit